fixes wrong usage of assign