Fixing pixel size bug