Help samsung continuum sleep button works only when it wants to

my continuum is sleep button works sometimes but mostly it does not, ive flashed it a couple of times using this tutorial and its been fine some roms a little lag but all of a sudden the sleep button stopped working, but when i do get it to work the phone is ok:thinking::thinking::thinking::thinking: