fixed some controllers bug