Fixed error where null command printed out