Fixed errors with gif and test 16