fixes
extra endif
copypaste faik