Fixed schedule null pointer exception