fixed few bugs in action model