Thanks for responding. I was pressing the S button while in modding mode. Then I pressed P. I think is conflicts with Khas Sapphire Action script,
http://forums.rpgmakerweb.com/index.php?/topic/4918-sapphire-action-system-iv/ because I just made a new game with no scripts and it works. i don't know anything about writing scripts so I can't change anything.
I think it conflicts with this part of the script but I dont know how to use it properly.
# character.px
# This command returns the pixel coordinate X (4 px = 1 tile)
#
# character.py
# This command returns the pixel coordinate Y (4 py = 1 tile)
#
# character.pixel_passable?(px,py,d)
# This command checks the pixel passability from (px, py) to the direction d.
#
# 4. Map Commands
# You can call a special command to update the passability of the current
# map. You MUST run this command if the option "Auto_Refresh_Tile_Events"
# is set to false.
#
# "But when do I need to use this command?"
# Well, if you change a event graphic to a tileset graphic, or if you remove
# this event graphic, then your map need to be updated!
#
# $game_map.refresh_table(start_x,start_y,end_x,end_y)
#
# Where:
# start_x => Initial X
# start_y => Initial Y
# end_x => End X
# end_y => End Y