diff --git a/src/XiaDxpStateMachine.cpp b/src/XiaDxpStateMachine.cpp
index b24ddcbd173cdd8987699b530246782d84a085d6..334171e85a72b4b95968a8bfa4110efdda4583fd 100644
--- a/src/XiaDxpStateMachine.cpp
+++ b/src/XiaDxpStateMachine.cpp
@@ -452,9 +452,7 @@ bool XiaDxp::is_boardType_allowed(Tango::AttReqType type)
 bool XiaDxp::is_fileGeneration_allowed(Tango::AttReqType type)
 {
 	if (get_state() == Tango::FAULT	||
-		get_state() == Tango::INIT	||
-		get_state() == Tango::RUNNING	||
-		get_state() == Tango::DISABLE)
+		get_state() == Tango::INIT)
 	{
 		//	End of Generated Code
 		if (get_state()==Tango::FAULT && is_device_initialized())