Fixes action handling.