Fix invalid input error

Signed-off-by: Ian Macalinao <me@ian.pw>