Solved a problem with controls struct.