Fixed crash with empty input
Fixed unnecessary indent