Fixes wrong type