Form suddenly not working properly