Fixes bug on deploy