Fixing bin script